package com.itjavas.cslp2.service.impl;

import com.itjavas.cslp2.mapper.RecordMapper;
import com.itjavas.cslp2.pojo.entity.Record;
import com.itjavas.cslp2.service.RecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
@Service
public class RecordServiceImpl implements RecordService{
    @Autowired
    RecordMapper recordMapper;
    //增加选课记录
    public ResponseEntity<Boolean> addRecord(Record record){
        return ResponseEntity.ok(recordMapper.addRecord(record));
    }
}
